﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework2.PlaneFigure
{
    internal class Circle:PlaneFigure
    {
        private int Radius;

        public Circle(int radius)
        {
            Radius = radius;
        }

        public override double getArea()
        {
            return Radius*Radius*3.14;
        }

        public override bool isLegal()
        {
            return Radius > 0;
        }
    }
}
